package com.engine4cloud.tdf.supervision.feign;

import com.engine4cloud.tdf.common.core.constant.SecurityConstants;
import com.engine4cloud.tdf.common.core.constant.ServiceNameConstants;
import com.engine4cloud.tdf.common.core.util.R;
import com.engine4cloud.tdf.supervision.dto.query.JzdxSimpleQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxSimpleResultDTO;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "RemoteJzdxService", value = ServiceNameConstants.SUPERVISION_SERVER)
public interface RemoteJzdxService {

    @PostMapping(value = "/inner/corrector/page")
    R<PageInfo<JzdxSimpleResultDTO>> simplePageList(@RequestBody JzdxSimpleQueryDTO dto, @RequestHeader(SecurityConstants.FROM) String from);
}
